package com.forum.pojo.forum;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 论坛用户实体类
 * @author Tsing
 */
@TableName("forum_user")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ForumUser {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String stuId;
    private String nickname;
    private String avatar;
    private String email;
    private String createTime;
    private String password;

    public ForumUser(String stuId,String nickname,String email,String password){
        this.stuId=stuId;
        this.nickname=nickname;
        this.email=email;
        this.password=password;
    }
}
